home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 406_01 / disked25 / source / alloc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-13  |  923 b   |  31 lines

  1. /***
  2. *alloc.h - definitions/declarations for malloc shell
  3. *
  4. *Copyright (c) 1992-1994, Gregg Jennings.  All wrongs reserved.
  5. *   P O Box 200, Falmouth, MA 02541-0200
  6. *
  7. *Purpose:
  8. *   [ANSI]
  9. *
  10. *******************************************************************************/
  11.  
  12. #ifdef __BORLANDC__                       /* same but different */
  13. #define _heapset(c)  heapfillfree(c)
  14. #define _heapinfo    heapinfo
  15. #define _heapwalk    heapwalk
  16. #define _nheapwalk   heapwalk
  17. #define _heapchk     heapcheck
  18. #define _nheapchk    heapcheck
  19. #define _pentry      ptr
  20. #define _size        size
  21. #define _useflag     in_use
  22. #endif
  23.  
  24. extern void *alloc(size_t num, size_t size);
  25. extern void  freep(void *addr);
  26. extern char *heapstat(int status);
  27. extern int   heapcheck(void);
  28. extern void  nfreep(void _near *addr);
  29. extern void _near *nalloc(size_t num, size_t size);
  30. extern void *newalloc(void *p, size_t size);
  31.